﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;

namespace 功能测试软件.ViewModel
{
    class SetViewModel : Notify
    {
        private ObservableCollection<string> _Ports = new ObservableCollection<string>();
        /// <summary>
        /// 串口列表
        /// </summary>
        public ObservableCollection<string> Ports { get { return _Ports; } set { _Ports = value; RaisePropertyChanged("Ports"); } }

        /// <summary>
        /// 继电器串口
        /// </summary>
        private string _RelayPort;
        public string RelayPort { get { return _RelayPort; } set { _RelayPort = value; RaisePropertyChanged("RelayPort"); } }

        private string _Current;
        /// <summary>
        /// 电流阈值
        /// </summary>
        public string Current { get { return _Current; } set { _Current = value; RaisePropertyChanged("Current"); } }

        /// <summary>
        /// 蓝牙串口
        /// </summary>
        private string _BtPort;
        public string BtPort { get { return _BtPort; } set { _BtPort = value; RaisePropertyChanged("BtPort"); } }

        private string _ScanDelay;
        /// <summary>
        /// 蓝牙搜索时长
        /// </summary>
        public string ScanDelay { get { return _ScanDelay; } set { _ScanDelay = value; RaisePropertyChanged("ScanDelay"); } }

        private string _dBm;
        /// <summary>
        /// 蓝牙强度阈值
        /// </summary>
        public string dBm { get { return _dBm; } set { _dBm = value; RaisePropertyChanged("dBm"); } }

        private bool? _Channel1Enable;
        /// <summary>
        /// 通道1使能
        /// </summary>
        public bool? Channel1Enable { get { return _Channel1Enable; } set { _Channel1Enable = value; RaisePropertyChanged("Channel1Enable"); } }

        private bool? _Channel2Enable;
        /// <summary>
        /// 通道2使能
        /// </summary>
        public bool? Channel2Enable { get { return _Channel2Enable; } set { _Channel2Enable = value; RaisePropertyChanged("Channel2Enable"); } }

        private bool? _Channel3Enable;
        /// <summary>
        /// 通道3使能
        /// </summary>
        public bool? Channel3Enable { get { return _Channel3Enable; } set { _Channel3Enable = value; RaisePropertyChanged("Channel3Enable"); } }

        private bool? _Channel4Enable;
        /// <summary>
        /// 通道4使能
        /// </summary>
        public bool? Channel4Enable { get { return _Channel4Enable; } set { _Channel4Enable = value; RaisePropertyChanged("Channel4Enable"); } }

        private bool? _Channel5Enable;
        /// <summary>
        /// 通道5使能
        /// </summary>
        public bool? Channel5Enable { get { return _Channel5Enable; } set { _Channel5Enable = value; RaisePropertyChanged("Channel5Enable"); } }

        private string _Channel1Port;
        /// <summary>
        /// 通道1串口
        /// </summary>
        public string Channel1Port { get { return _Channel1Port; } set { _Channel1Port = value; RaisePropertyChanged("Channel1Port"); } }

        private string _Channel2Port;
        /// <summary>
        /// 通道2串口
        /// </summary>
        public string Channel2Port { get { return _Channel2Port; } set { _Channel2Port = value; RaisePropertyChanged("Channel2Port"); } }

        private string _Channel3Port;
        /// <summary>
        /// 通道3串口
        /// </summary>
        public string Channel3Port { get { return _Channel3Port; } set { _Channel3Port = value; RaisePropertyChanged("Channel3Port"); } }

        private string _Channel4Port;
        /// <summary>
        /// 通道4串口
        /// </summary>
        public string Channel4Port { get { return _Channel4Port; } set { _Channel4Port = value; RaisePropertyChanged("Channel4Port"); } }

        private string _Channel5Port;
        /// <summary>
        /// 通道5串口
        /// </summary>
        public string Channel5Port { get { return _Channel5Port; } set { _Channel5Port = value; RaisePropertyChanged("Channel5Port"); } }

        private bool? _Channel1PicEnable;
        /// <summary>
        /// 通道1刷图使能
        /// </summary>
        public bool? Channel1PicEnable { get { return _Channel1PicEnable; } set { _Channel1PicEnable = value; RaisePropertyChanged("Channel1PicEnable"); } }

        private bool? _Channel2PicEnable;
        /// <summary>
        /// 通道2刷图使能
        /// </summary>
        public bool? Channel2PicEnable { get { return _Channel2PicEnable; } set { _Channel2PicEnable = value; RaisePropertyChanged("Channel2PicEnable"); } }

        private bool? _Channel3PicEnable;
        /// <summary>
        /// 通道3刷图使能
        /// </summary>
        public bool? Channel3PicEnable { get { return _Channel3PicEnable; } set { _Channel3PicEnable = value; RaisePropertyChanged("Channel3PicEnable"); } }

        private bool? _Channel4PicEnable;
        /// <summary>
        /// 通道4刷图使能
        /// </summary>
        public bool? Channel4PicEnable { get { return _Channel4PicEnable; } set { _Channel4PicEnable = value; RaisePropertyChanged("Channel4PicEnable"); } }

        private bool? _Channel5PicEnable;
        /// <summary>
        /// 通道5刷图使能
        /// </summary>
        public bool? Channel5PicEnable { get { return _Channel5PicEnable; } set { _Channel5PicEnable = value; RaisePropertyChanged("Channel5PicEnable"); } }

        private double _Channel1PicOpacity = 1;
        /// <summary>
        /// 通道1图片切换透明度  true=1;false=0.1
        /// </summary>
        public double Channel1PicOpacity { get { return _Channel1PicOpacity; } set { _Channel1PicOpacity = value; RaisePropertyChanged("Channel1PicOpacity"); } }

        private double _Channel2PicOpacity = 1;
        /// <summary>
        /// 通道2图片切换透明度  true=1;false=0.1
        /// </summary>
        public double Channel2PicOpacity { get { return _Channel2PicOpacity; } set { _Channel2PicOpacity = value; RaisePropertyChanged("Channel2PicOpacity"); } }

        private double _Channel3PicOpacity = 1;
        /// <summary>
        /// 通道3图片切换透明度  true=1;false=0.1
        /// </summary>
        public double Channel3PicOpacity { get { return _Channel3PicOpacity; } set { _Channel3PicOpacity = value; RaisePropertyChanged("Channel3PicOpacity"); } }

        private double _Channel4PicOpacity = 1;
        /// <summary>
        /// 通道4图片切换透明度  true=1;false=0.1
        /// </summary>
        public double Channel4PicOpacity { get { return _Channel4PicOpacity; } set { _Channel4PicOpacity = value; RaisePropertyChanged("Channel4PicOpacity"); } }

        private double _Channel5PicOpacity = 1;
        /// <summary>
        /// 通道5图片切换透明度  true=1;false=0.1
        /// </summary>
        public double Channel5PicOpacity { get { return _Channel5PicOpacity; } set { _Channel5PicOpacity = value; RaisePropertyChanged("Channel5PicOpacity"); } }

        private bool? _Channel1isQr;
        /// <summary>
        /// 通道1二维码刷图
        /// </summary>
        public bool? Channel1isQr { get { return _Channel1isQr; } set { _Channel1isQr = value; RaisePropertyChanged("Channel1isQr"); } }

        private bool? _Channel1isRedBlack;
        /// <summary>
        /// 通道1红黑刷图
        /// </summary>
        public bool? Channel1isRedBlack { get { return _Channel1isRedBlack; } set { _Channel1isRedBlack = value; RaisePropertyChanged("Channel1isRedBlack"); } }

        private bool? _Channel2isQr;
        /// <summary>
        /// 通道2二维码刷图
        /// </summary>
        public bool? Channel2isQr { get { return _Channel2isQr; } set { _Channel2isQr = value; RaisePropertyChanged("Channel2isQr"); } }

        private bool? _Channel2isRedBlack;
        /// <summary>
        /// 通道2红黑刷图
        /// </summary>
        public bool? Channel2isRedBlack { get { return _Channel2isRedBlack; } set { _Channel2isRedBlack = value; RaisePropertyChanged("Channel2isRedBlack"); } }

        private bool? _Channel3isQr;
        /// <summary>
        /// 通道3二维码刷图
        /// </summary>
        public bool? Channel3isQr { get { return _Channel3isQr; } set { _Channel3isQr = value; RaisePropertyChanged("Channel3isQr"); } }

        private bool? _Channel3isRedBlack;
        /// <summary>
        /// 通道3红黑刷图
        /// </summary>
        public bool? Channel3isRedBlack { get { return _Channel3isRedBlack; } set { _Channel3isRedBlack = value; RaisePropertyChanged("Channel3isRedBlack"); } }

        private bool? _Channel4isQr;
        /// <summary>
        /// 通道4二维码刷图
        /// </summary>
        public bool? Channel4isQr { get { return _Channel4isQr; } set { _Channel4isQr = value; RaisePropertyChanged("Channel4isQr"); } }

        private bool? _Channel4isRedBlack;
        /// <summary>
        /// 通道4红黑刷图
        /// </summary>
        public bool? Channel4isRedBlack { get { return _Channel4isRedBlack; } set { _Channel4isRedBlack = value; RaisePropertyChanged("Channel4isRedBlack"); } }

        private bool? _Channel5isQr;
        /// <summary>
        /// 通道5二维码刷图
        /// </summary>
        public bool? Channel5isQr { get { return _Channel5isQr; } set { _Channel5isQr = value; RaisePropertyChanged("Channel5isQr"); } }

        private bool? _Channel5isRedBlack;
        /// <summary>
        /// 通道5红黑刷图
        /// </summary>
        public bool? Channel5isRedBlack { get { return _Channel5isRedBlack; } set { _Channel5isRedBlack = value; RaisePropertyChanged("Channel5isRedBlack"); } }

        private bool? _Channel1RgbEnable;
        /// <summary>
        /// 通道1点灯使能
        /// </summary>
        public bool? Channel1RgbEnable { get { return _Channel1RgbEnable; } set { _Channel1RgbEnable = value; RaisePropertyChanged("Channel1RgbEnable"); } }

        private bool? _Channel2RgbEnable;
        /// <summary>
        /// 通道2点灯使能
        /// </summary>
        public bool? Channel2RgbEnable { get { return _Channel2RgbEnable; } set { _Channel2RgbEnable = value; RaisePropertyChanged("Channel2RgbEnable"); } }
        
        private bool? _Channel3RgbEnable;
        /// <summary>
        /// 通道3点灯使能
        /// </summary>
        public bool? Channel3RgbEnable { get { return _Channel3RgbEnable; } set { _Channel3RgbEnable = value; RaisePropertyChanged("Channel3RgbEnable"); } }
        
        private bool? _Channel4RgbEnable;
        /// <summary>
        /// 通道4点灯使能
        /// </summary>
        public bool? Channel4RgbEnable { get { return _Channel4RgbEnable; } set { _Channel4RgbEnable = value; RaisePropertyChanged("Channel4RgbEnable"); } }
        
        private bool? _Channel5RgbEnable;
        /// <summary>
        /// 通道5点灯使能
        /// </summary>
        public bool? Channel5RgbEnable { get { return _Channel5RgbEnable; } set { _Channel5RgbEnable = value; RaisePropertyChanged("Channel5RgbEnable"); } }

        private double _Channel1RgbOpacity = 1;
        /// <summary>
        /// 通道1点灯时长透明度  true=1;false=0.1
        /// </summary>
        public double Channel1RgbOpacity { get { return _Channel1RgbOpacity; } set { _Channel1RgbOpacity = value; RaisePropertyChanged("Channel1RgbOpacity"); } }

        private double _Channel2RgbOpacity = 1;
        /// <summary>
        /// 通道2点灯时长透明度  true=1;false=0.1
        /// </summary>
        public double Channel2RgbOpacity { get { return _Channel2RgbOpacity; } set { _Channel2RgbOpacity = value; RaisePropertyChanged("Channel2RgbOpacity"); } }

        private double _Channel3RgbOpacity = 1;
        /// <summary>
        /// 通道3点灯时长透明度  true=1;false=0.1
        /// </summary>
        public double Channel3RgbOpacity { get { return _Channel3RgbOpacity; } set { _Channel3RgbOpacity = value; RaisePropertyChanged("Channel3RgbOpacity"); } }

        private double _Channel4RgbOpacity = 1;
        /// <summary>
        /// 通道4点灯时长透明度  true=1;false=0.1
        /// </summary>
        public double Channel4RgbOpacity { get { return _Channel4RgbOpacity; } set { _Channel4RgbOpacity = value; RaisePropertyChanged("Channel4RgbOpacity"); } }

        private double _Channel5RgbOpacity = 1;
        /// <summary>
        /// 通道5点灯时长透明度  true=1;false=0.1
        /// </summary>
        public double Channel5RgbOpacity { get { return _Channel5RgbOpacity; } set { _Channel5RgbOpacity = value; RaisePropertyChanged("Channel5RgbOpacity"); } }

        /// <summary>
        /// 通道1点灯时长
        /// </summary>
        private string _Channel1RgbDelay;
        public string Channel1RgbDelay { get { return _Channel1RgbDelay; } set { _Channel1RgbDelay = value; RaisePropertyChanged("Channel1RgbDelay"); } }

        /// <summary>
        /// 通道2点灯时长
        /// </summary>
        private string _Channel2RgbDelay;
        public string Channel2RgbDelay { get { return _Channel2RgbDelay; } set { _Channel2RgbDelay = value; RaisePropertyChanged("Channel2RgbDelay"); } }

        /// <summary>
        /// 通道3点灯时长
        /// </summary>
        private string _Channel3RgbDelay;
        public string Channel3RgbDelay { get { return _Channel3RgbDelay; } set { _Channel3RgbDelay = value; RaisePropertyChanged("Channel3RgbDelay"); } }

        /// <summary>
        /// 通道4点灯时长
        /// </summary>
        private string _Channel4RgbDelay;
        public string Channel4RgbDelay { get { return _Channel4RgbDelay; } set { _Channel4RgbDelay = value; RaisePropertyChanged("Channel4RgbDelay"); } }

        /// <summary>
        /// 通道5点灯时长
        /// </summary>
        private string _Channel5RgbDelay;
        public string Channel5RgbDelay { get { return _Channel5RgbDelay; } set { _Channel5RgbDelay = value; RaisePropertyChanged("Channel5RgbDelay"); } }
    }
}